<%@include file="../header.jsp"%>

<!-- start content-outer -->
<div id="content-outer"><!-- start content -->
<div id="content">
<div id="page-heading">
<h1>Penjadwalan : ${jenisSidang} - ${idUser}</h1>
</div>
<table id="content-table" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" alt="" height="300" width="20" /></th>
<th class="topleft"></th>
<td id="tbl-border-top">&nbsp;</td>
<th class="topright"></th>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" alt="" height="300" width="20" /></th>
</tr>
<tr>
<td id="tbl-border-left"></td>
<td><!-- start content-table-inner -->
<div id="content-table-inner">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr valign="top">
<td>
<!-- start step-holder -->
<!-- end step-holder -->

<!-- start id-form -->
<!-- Detail Jadwal Proposal -->
<script>
function validateJadwalSidang(){
if (document.jadwalSidang.tglSidang.value == ""){
  alert("Tanggal sidang harus diisi");
  document.jadwalSidang.tglSidang.focus();
  return false;
  }
else if (document.jadwalSidang.wktSidang.value == ""){
      alert("waktu sidang harus diisi");
      document.jadwalSidang.wktSidang.focus();
      return false;
  }
else if (!document.jadwalSidang.wktSidang.value.match(/^(20|21|22|23|[01]\d|\d)(([:.][0-5]\d){1,2})$/gi)){
      alert("format waktu salah");
      document.jadwalSidang.wktSidang.focus();
      return false;
  }
else if (document.jadwalSidang.tempatSidang.value == ""){
  alert("Tempat sidang harus diisi");
  document.jadwalSidang.tempatSidang.focus();
  return false;
  }
else if (document.jadwalSidang.penguji1.value == 0){
  alert("Penguji 1 harus diisi");
  document.jadwalSidang.penguji1.focus();
  return false;
  }
else if(document.jadwalSidang.jenisSidang.value == "SIDANG FINAL" && document.jadwalSidang.penguji2.value == 0){
  alert("Penguji 2 harus diisi");
  document.jadwalSidang.penguji2.focus();
  return false;      
  }
}
</script>
<table id="id-form" border="0" cellpadding="0" cellspacing="0">
<form name="jadwalSidang" action="SidangTAController?page=penjadwalanSidang" onSubmit="return validateJadwalSidang()" method="post">
<tbody>
<tr>
   <th valign="top">Pembimbing 1</th>
   <td valign="middle" align="center">:</td>
   <c:forEach items="${listPembimbing1}" var="listPembimbing1" >
   <c:if test="${(listPembimbing1.user.idUser == detailDataTA.pembimbing1)}">
       <td>${listPembimbing1.user.namaUser}</td>
   </c:if>
   </c:forEach>
   <td></td>
</tr>
<tr>
   <th valign="top">Pembimbing 2</th>
   <td valign="middle" align="center">:</td>
   <td>
    <c:if test="${(detailDataTA.pembimbing2 != '0')}">
    <c:forEach items="${listPembimbing2}" var="listPembimbing2" >
    <c:if test="${(listPembimbing2.user.idUser == detailDataTA.pembimbing2)}">
       ${listPembimbing2.user.namaUser}
    </c:if>
    </c:forEach>
    </c:if>
    <c:if test="${(detailDataTA.pembimbing2 != null)}">${detailDataTA.pembimbingLuar}</c:if>
    <c:if test="${(detailDataTA.pembimbing2 == '0' && detailDataTA.pembimbingLuar == null)}"><font color="red">-</font></c:if>
   </td>
</tr>
<tr>
  <th width="130" valign="top">Tanggal <font color="red">*</font></th>
  <td width="29" valign="middle" align="center">:</td>
  <td width="275" valign="top">
      <input type="hidden" name="idSidang" value="${detailJadwal.idSidang}"></input>
      <input type="hidden" name="idUser" value="${idUser}"></input>
      <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
      <input id="tanggalMulai" class="inp-form" type="text" name="tglSidang" value="${detailJadwal.tglSidang}"></input>
  </td>
  <td><i>format : YYYY-MM-DD</i></td>
</tr>
<tr>
  <th valign="top">Waktu <font color="red">*</font></th>
  <td valign="middle" align="center">:</td>
  <td valign="top">
      <input class="inp-form" type="text" name="wktSidang" value="${detailJadwal.wktSidang}"></input>
  </td>
  <td width="315" ><i>format : HH:MM:SS</i></td>
</tr>
<tr>
  <th valign="top">Tempat <font color="red">*</font></th>
  <td valign="middle" align="center">:</td>
  <td valign="top">
      <input class="inp-form" type="text" name="tempatSidang" value="${detailJadwal.tempatSidang}"></input>
  </td>
  <td></td>
</tr>
<tr>
  <th valign="top">Penguji 1 <font color="red">*</font></th>
  <td valign="middle" align="center">:</td>
  <td valign="top">
      <select name="penguji1" class="styledselect_form_1">
      <option value="0">-- Penguji 1 --</option>
      <c:forEach items="${listPenguji1}" var="listPenguji1">
         <option value="${listPenguji1.user.idUser}"
                 <c:if test="${(listPenguji1.user.idUser == detailJadwal.penguji1)}">
                        selected="selected"
                 </c:if>
         >${listPenguji1.user.namaUser}</option>
      </c:forEach>
      </select>  
  </td>
  <td></td>
</tr>
<tr>
  <th valign="top">Penguji 2 <c:if test="${jenisSidang == 'SIDANG FINAL'}"><font color="red">*</font></c:if></th>
  <td valign="middle" align="center">:</td>
  <td valign="top">
      <select name="penguji2" class="styledselect_form_1">
          <option value="0">-- Penguji 2 --</option>
      <c:forEach items="${listPenguji2}" var="listPenguji2">
          <option value="${listPenguji2.user.idUser}"
                  <c:if test="${(listPenguji2.user.idUser == detailJadwal.penguji2)}">
                      selected="selected"
                  </c:if>
          >${listPenguji2.user.namaUser}</option>
      </c:forEach>
      *</select>
  </td>
  <td></td>
</tr>
<tr>
<th><font color="red">* = Wajib diisi</font></th>
<td valign="top">&nbsp;</td>
<td valign="top"> <input value="" class="form-jadwalkan" type="submit" /> 
<td></td>
</tr>
</tbody>
</form>
</table>
<!-- Akhir Detail Jadwal Proposal-->

<!-- Detail Jadwal Progress -->

<!-- end id-form --> </td>
<td>
<td><!-- start related-activities -->

<!-- end related-act-bottom --> 
<!-- end related-activities --></td>
</td>
</tr>
<tr>
<td><img src="images/shared/blank.gif" alt="blank" height="1" width="695" /></td>
<td></td>
</tr>
</tbody>
</table>
<div class="clear"></div>
</div>
<!-- end content-table-inner -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
<th class="sized bottomleft"></th>
<td id="tbl-border-bottom">&nbsp;</td>
<th class="sized bottomright"></th>
</tr>
</tbody>
</table>
<div class="clear">&nbsp;</div>
</div>
<!-- end content -->
<div class="clear">&nbsp;</div>
</div>
<!-- end content-outer -->
<div class="clear">&nbsp;</div>
<!-- start footer -->
<div id="footer"><!-- start footer-left -->
<div id="footer-left"> Admin Skin © Copyright Internet
Dreams Ltd. <a href="">www.netdreams.co.uk</a>. All
rights reserved.</div>
<!-- end footer-left -->
<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
</body></html>